<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width, initial-scale=1">
    <title>绑定注册</title>
    <script src="http://cdn.static.runoob.com/libs/jquery/2.0.0/jquery.min.js"></script>
    <script src="/police/webjars/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/police/webjars/bootstrap/3.3.5/css/bootstrap.min.css"/>
</head>
<body>
<h1 class="text-center">绑定注册</h1>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="col-md-6 col-md-offset-3">
            <form class="form-horizontal" th:action="@{/weixin/bd}" method="POST">
                <input id="inputOpenId" type="hidden" name="openId" th:value="${user.openId}"/>
                <div class="form-group">
                    <label for="inputPhone">手机号</label>
                    <input class="form-control" id="inputPhone" name="phone" type="text"/>
                </div>
                <div class="form-group">
                    <label for="inputPassword">密码</label>
                    <input class="form-control" id="inputPassword" name="password" type="password"/>
                </div>
                <div class="form-group">
                    <div class="row">
                        <div class="col-sm-6">
                            <input  type="submit" class="btn btn-primary btn-group-justified" value="提交" >
                        </div>
                        <br/>
                        <div class="col-sm-6">
                            <a  th:href="@{/page/user/zc(openId=${user.openId})}"  class="btn btn-success btn-group-justified">注册</a>
                        </div>
                    </div>
                </div>
            </form>

        </div>
    </div>
</div>
</body>
</html>